credit2: Detect socket layout and assign one runqueue per socket
authorKeir Fraser <keir@xen.org>
Fri, 24 Dec 2010 08:29:27 +0000 (08:29 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 24 Dec 2010 08:29:27 +0000 (08:29 +0000)
commitcbce336827ac1dc3c847d16dce5f8b04359cc86d
tree0da488598322f0fcf7c295a902aff406e40ba106
parente94b9172714867180935d844e63adfaea9d20b97
credit2: Detect socket layout and assign one runqueue per socket

Because alloc_pdata() is called before the cpu layout information is
available, we grab a callback to the newly-created CPU_STARTING
notifier.

cpu 0 doesn't get a callback, so we simply hard-code it to runqueue 0.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit2.c